{foreach $wars as $war}
<tr>
    {assign $our = $war->war_ourscore_map1 + $war->war_ourscore_map2}
    {assign $their = $war->war_theirscore_map1 + $war->war_theirscore_map2}
    {if $our > $their}
    {assign $class = "war_win"}
    {elseif $our < $their}
    {assign $class = "war_lost"}
    {else}
    {assign $class = "war_draw"}
    {/if}
    <td><a href="{jurl 'havefnu~war:show',array('id_war'=>$war->id_war)}"><img src="{$j_basepath}images/others/magnifier_zoom_in.png" alt="details"/></a></td>
    <td class="{$class}">{$war->team_tag|eschtml}</td>
    <td class="{$class}">{$war->war_type|eschtml}</td>
    <td class="{$class}">{$war->war_clanadv|eschtml}</td>
    <td class="{$class}">{$war->war_date|jdatetime:'db_date':'lang_date'}</td>
    <td class="{$class}">{$our}-{$their}</td>
    <td class="{$class}">{$war->war_map1|eschtml} - {$war->war_map2|eschtml}</td>
</tr>
{/foreach}